import { Navigate } from 'react-router'
import { lazy } from 'react'

//主页面
const Main = lazy(() => import('../page/main'))

//主页面_v2
const Main_v2 = lazy(() => import('../page/main_v2'))


//预览页面
const Preview = lazy(() => import('../page/preview'))

const element = [
	{
		path: 'main',
		element: <Main_v2 />
	},

	// {
	// 	path: 'preview',
	// 	element: <Preview />
	// },
	// //严格模式，去掉缺省

	{
		path: '/',
		element: <Navigate to='main' />
	}
]


export default element;
